package ClientAnneau;

import org.omg.CORBA.*;

public class ClientImpl extends ClientPOA{

	boolean isElected = false;
	int logicalClock  = 0;
	private ORB orb;
	
	public ClientImpl(ORB orb){
		this.orb = orb;
	}
	
	public boolean formerAnneau (){
		return true;

	}

	public boolean estElu (){
		return isElected;
		}

	
	public void mettreAJourHorloge (int horlogeRecue){
		if(horlogeRecue>logicalClock)
			logicalClock = horlogeRecue + 1;
		else
			logicalClock++;	
	}

}
